package com.neibu.hw5.demo02;

import java.util.function.Predicate;

/**
 * @author bin
 * @date 2025 - 04 -02
 **/
public class MainTest {
    public static void main(String[] args) {
        checkScore(60, (score) -> score >= 60);
    }
    private static String checkScore(int score,Predicate<Integer> predicate){
        return predicate.test(score) ? "及格" : "不及格";
    }
}
